package com.xuecheng.swagger.controller;

import com.xuecheng.swagger.domain.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Api(value = "hello controller api",tags = "hello controller api-tags",description = "hello controller api-des")
public interface HelloControllerApi {
    @ApiOperation("修改学员信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "学员的id值",required = true,dataType = "string",paramType = "path"),
            @ApiImplicitParam(name = "name",value = "学员的姓名",required = true,dataType = "string",paramType = "request")
    }
    )
    @PutMapping("{id}")
    Student mofidyStudentBynNum(@PathVariable("id") String id,
                                @RequestParam("name") String name,
                                @RequestBody Student student);
}
